
import request from '@/utils/request';
import { Result } from './definitions/Result';
import { ShopQueue } from './definitions/ShopQueue';
import { ResultIPageShopQueue } from './definitions/ResultIPageShopQueue';
import { ResultShopQueue } from './definitions/ResultShopQueue';


export class ShopAdminQueueController {

    static insertUsingPOSTPath: string = "/v1/admin/shopQueue";
    /// insert
    async insertUsingPOST(data: ShopQueue, headers?: any):  Promise<any> {
      return request(`/v1/admin/shopQueue`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static updateUsingPUTPath: string = "/v1/admin/shopQueue";
    /// update
    async updateUsingPUT(data: ShopQueue, headers?: any):  Promise<any> {
      return request(`/v1/admin/shopQueue`, {
        method: "PUT",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static pageUsingPOSTPath: string = "/v1/admin/shopQueue/page";
    /// page
    async pageUsingPOST(data: ShopQueue, headers?: any):  Promise<ResultIPageShopQueue> {
      return request(`/v1/admin/shopQueue/page`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static getUsingGETPath: string = "/v1/admin/shopQueue/{id}";

    async getUsingGET(id: string,  headers?: any) : Promise<ResultShopQueue> {
      return request(`/v1/admin/shopQueue/${id}`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static deleteUsingDELETEPath: string = "/v1/admin/shopQueue/{id}";

    async deleteUsingDELETE(id: string,  headers?: any) : Promise<any> {
      return request(`/v1/admin/shopQueue/${id}`, {
        method: "DELETE",
        headers: headers,
      }) as Promise<any>;
    }
    
}